import request from '@/utils/request'

// 获取当日数据
export function getTodayDataApi(data) {
  return request({
    url: '/system/summary/getToday',
    method: 'get'
  })
}

// 较上周销售及回收单量金额
export function coordinateApi(data) {
  return request({
    url: '/system/summary/coordinate',
    method: 'get'
  })
}

//---------------收卖数据---------------------------------

// 今日销售和今日回收数据
export function getTodaySaleAndRecycleApi(data) {
  return request({
    url: '/system/summayr/getGmTransaction',
    method: 'get'
  })
}

// 近七日销售利润及单量
export function getProfitApi(data) {
  return request({
    url: '/system/summary/getProfit',
    method: 'get'
  })
}

// 近七日销售利润及单量
export function getAccountOriginApi() {
  return request({
    url: '/system/supplier/getSupplierPercentage',
    method: 'get'
  })
}

// 每日销售单量和每日回收单量金额
export function daliyDataApi() {
  return request({
    url: '/system/summary/dailyCoordinateChart',
    method: 'get'
  })
}



//第三页------------------------账号库存总览
// 游戏品类数据看板
export function gameTypeApi() {
  return request({
    url: '/system/details/getInventoryClass',
    method: 'get'
  })
}

// 游戏品类数据看板
export function accountStorageViewApi() {
  return request({
    url: '/system/details/inventoryOverview',
    method: 'get'
  })
}

// 库存近七日回收数量走势
export function recycleTrendApi() {
  return request({
    url: '/system/trend/recyclingQuantity',
    method: 'get'
  })
}


// 库存近七日销售数量走势
export function saleTrendApi() {
  return request({
    url: '/system/trend/salesQuantity',
    method: 'get'
  })
}

// 游戏单品
export function singleProductApi(data) {
  return request({
    url: '/system/gm/getSingleProduct',
    method: 'get',
    params:data
  })
}

// 供应商每日收益
export function dailyProfitApi(data) {
  return request({
    url: '/system/daily/getSupplierProfit',
    method: 'get',
    params:data
  })
}



// 异常账号-----------------------------------------------------------------------------
// 数据总览
export function dataViewAPi(data) {
  return request({
    url: '/system/finance/reportForms',
    method: 'get'
  })
}

// 财务收入和支出
export function financeIncomeAndOutcomApi(data) {
  return request({
    url: '/system/amount/differentialModification',
    method: 'get',
    params:data
  })
}

// 导出
export function exportApi(data) {
  return request({
    url: '/system/type/export',
    method: 'get',
  })
}


// 账号库存单品数量增长
export function financeDataViewApi(data) {
  return request({
    url: '/system/finance/dataViewingVersion',
    method: 'get',
  })
}


// 账号库存单品数量增长
export function financeDetailApi(data) {
  return request({
    url: '/system/type/getDateType',
    method: 'get',
  })
}
